import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
// 预警设置列表
export function warnList(params: any) {
  return http.request("get", baseUrlApi("business/early_warn/list"), { params });
}
// 预警设置删除 18
export function warnRemove(id: number) {
  return http.request("delete", baseUrlApi(`business/early_warn/remove/${id}`));
}
// 税源地列表 
export function taxSourcesList(params?: any) {
  return http.request("get", baseUrlApi("business/tax_sources/list"), { params });
}
// 风险类型列表 
export function earlyWarnRiskType() {
  return http.request("get", baseUrlApi("constantList/earlyWarnRiskType"));
}
// 添加风险类型 business/early_warn/add
export function earlyWarnAdd(params: any) {
  return http.request("post", baseUrlApi("business/early_warn/add"),{data: params});
}
// 修改风险类型 
export function earlyWarnEdit(params: any) {
  return http.request("put", baseUrlApi("business/early_warn/edit"),{data: params});
}
// 预警数据列表 
export function dtlList(params: any) {
  return http.request("get", baseUrlApi("business/salary_payment_dtl/list"), { params });
}
// 商户列表 
export function listMerchantName() {
  return http.request("get", baseUrlApi("business/user_data_permissions/listMerchantName"));
}
// 上传验收单 
export function proofUpload(params: any) {
  return http.request("post", baseUrlApi("core/salary/salaryPaymentDtl/proofUpload"),{data: params});
}
// 风险预警列表 
export function warnRiskList(params: any) {
  return http.request("get", baseUrlApi("business/warn_risk/list"), {params});
}
// 风险预警 异常类型 
export function typeWarnExceptionList() {
  return http.request("get", baseUrlApi("constantList/typeWarnExceptionList"));
}
// 异常管理列表 
export function exceptionList(params: any) {
  return http.request("get", baseUrlApi("business/warn_exception/list"), {params});
}
// 佣金明细列表 
export function dtllistAgent(params: any) {
  return http.request("get", baseUrlApi("business/salary_payment_dtl/listAgent"), {params});
}
// 代理列表 
export function listAgentDept() {
  return http.request("get", baseUrlApi("business/user_data_permissions/listAgentDept"));
}
// 税源地2 
export function listTaxSourcesRole(params?: any) {
  return http.request("get", baseUrlApi("business/user_data_permissions/listTaxSourcesRole"), {params});
}
// 销售提成配置列表 
export function configList(params: any) {
  return http.request("get", baseUrlApi("business/sales_commission_config/list"), {params});
}
// 税源地3 
export function listHasTemplate(params?: any) {
  return http.request("get", baseUrlApi("business/tax_sources/listHasTemplate"), {params});
}
// 销售提成配置 删除 3
export function configRemove(id: number) {
  return http.request("delete", baseUrlApi(`business/sales_commission_config/remove/${id}`));
}
// 添加提成结算规则 
export function commissionAdd(params: any) {
  return http.request("post", baseUrlApi("business/sales_commission_config/add"),{data: params});
}
// 选择税源地后请求接口
export function getNewByTaxSourcesId(id: any) {
  return http.request("get", baseUrlApi(`business/sales_commission_config/getNewByTaxSourcesId/${id}`));
}
//  销售提成配置详情
export function CommissiongetInfo(id: number) {
  return http.request("get", baseUrlApi(`business/sales_commission_config/getInfo/${id}`));
}
// 业务员列表 
export function listBackstageUser(params?: any) {
  return http.request("get", baseUrlApi("business/merchant_manager_user/listBackstageUser"), {params});
}
// 业务员佣金列表 
export function sellcommissionlist(params?: any) {
  return http.request("get", baseUrlApi("business/salary_sell_commission/list"), {params});
}
// 金额信息 
export function listSum(params?: any) {
  return http.request("get", baseUrlApi("business/salary_sell_commission/listSum"), {params});
}
// 分公司名称
export function listDeptCompany(params?: any) {
  return http.request("get", baseUrlApi("business/user_data_permissions/listDeptCompany"), {params});
}
//  风险预警详情 
export function riskgetInfo(id: number) {
  return http.request("get", baseUrlApi(`business/warn_risk/getInfo/${id}`));
}
// 风险预警详情 移入白名单 
export function whiteAdd(params: any) {
  return http.request("post", baseUrlApi("business/warn_risk_white/add"),{data: params});
}
// 异常管理 改变状态 
export function WarnState(params: any) {
  return http.request("put", baseUrlApi("business/warn_exception/state"),{data: params});
}
// 添加异常  
export function exceptionAdd(params: any) {
  return http.request("post", baseUrlApi("business/warn_exception/add"),{data: params});
}
// 编辑异常
export function exceptionEdit(params: any) {
  return http.request("put", baseUrlApi("business/warn_exception/edit"),{data: params});
}
// 删除异常 3
export function exceptionDel(id: number) {
  return http.request("delete", baseUrlApi(`business/warn_exception/remove/${id}`));
}